home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 10900 / 10900.xpi / chrome.jar / skin / vista / personas.css
Encoding:
Cascading Style Sheet File  |  2009-11-25  |  4.1 KB  |  121 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Personas.
  15.  *
  16.  * The Initial Developer of the Original Code is Mozilla.
  17.  * Portions created by the Initial Developer are Copyright (C) 2007
  18.  * the Initial Developer. All Rights Reserved.
  19.  *
  20.  * Contributor(s):
  21.  *   Chris Beard <cbeard@mozilla.org>
  22.  *   Myk Melez <myk@mozilla.org>
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  26.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the MPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the MPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37.  
  38.  
  39. /* Note: pan-OS styles live in the content/personas.css stylesheet. */
  40.  
  41.  
  42. /******************************************************************************/
  43. /* Personas Menu/Toolbarbutton */
  44.  
  45. /* Show the Personas icon to the Personas Tools menu item.  This is OS-specific
  46.  * because it doesn't look good on Mac, which also doesn't seem to respect
  47.  * the -moz-image-region rule, so we only show it on Windows and Linux. */
  48. #personas-menu {
  49.   list-style-image: url("chrome://personas/content/personas_16x16.png");
  50.   -moz-image-region: rect(0, 16px, 16px, 0px);
  51. }
  52.  
  53.  
  54. /******************************************************************************/
  55. /* Header */
  56.  
  57. #main-window[persona] {
  58.   -moz-appearance: none;
  59. }
  60.  
  61. #main-window[persona] #navigator-toolbox {
  62.   -moz-appearance: none;
  63.   background-color: transparent;
  64.  
  65.   /* When we set -moz-appearance: none so the persona will appear, the toolbox
  66.    * gains a 1px top border that it doesn't have with -moz-appearance: toolbox,
  67.    * so we remove it to keep the height of the chrome the same. */
  68.   border-top: 0;
  69. }
  70.  
  71. #main-window[persona] #navigator-toolbox toolbar {
  72.   -moz-appearance: none;
  73.   background-color: transparent;
  74.  
  75.   /* To get rid of the borders on the toolbars, we first change -moz-appearance
  76.    * from "toolbar" to "none" so we can override the border rules.  That changes
  77.    * the top and bottom border widths from 2px, 0px to 1px, 1px, respectively,
  78.    * so we then emulate the widths of the original borders with top and bottom
  79.    * border rules. */
  80.   border-top-width: 2px;
  81.   border-top-color: transparent;
  82.   border-bottom: none;
  83. }
  84.  
  85. #main-window[persona] .tabbrowser-tabs {
  86.   -moz-appearance: none;
  87.   background-color: transparent;
  88. }
  89.  
  90.  
  91. /******************************************************************************/
  92. /* Make some elements a little transparent so the persona flavors their look. */
  93.  
  94. #main-window[persona] .tabbrowser-tab {
  95.   background-color: -moz-dialog;
  96.   opacity: 0.6;
  97. }
  98. #main-window[persona] .tabbrowser-tab[selected="true"] {
  99.   opacity: 0.8;
  100. }
  101. #main-window[persona] #urlbar,
  102. #main-window[persona] #searchbar {
  103.   opacity: 0.8;
  104. }
  105.  
  106.  
  107. /******************************************************************************/
  108. /* Footer */
  109.  
  110. #browser-bottombox[persona] #status-bar {
  111.   border-left: none;
  112.   border-bottom: none;
  113.   border-right: none;
  114. }
  115.  
  116. #browser-bottombox[persona] #FindToolbar {
  117.   border-top-width: 2px;
  118.   border-top-color: transparent;
  119.   -moz-border-top-colors: transparent !important;
  120. }
  121.